|
Kanzi Graphics Engine
|
GPU resource. More...
#include "kzu_resource_common.h"#include <system/debug/kzs_error.h>#include <system/kzs_types.h>#include <system/kzs_header.h>Enumerations | |
| enum | KzuGPUResourceDeploymentStrategy { KZU_GPU_RESOURCE_DEPLOYMENT_STRATEGY_DEFAULT, KZU_GPU_RESOURCE_DEPLOYMENT_STRATEGY_MANUAL, KZU_GPU_RESOURCE_DEPLOYMENT_STRATEGY_KEEP, KZU_GPU_RESOURCE_DEPLOYMENT_STRATEGY_ON_DEMAND } |
| GPU resource deployment strategy. More... | |
Functions | |
| struct KzuResource * | kzuGPUResourceToResource (const struct KzuGPUResource *gpuResource) |
| Convert GPU resource to resource. More... | |
| struct KzuGPUResource * | kzuGPUResourceFromResource (const struct KzuResource *resource) |
| Convert resource to GPU resource. More... | |
| kzBool | kzuResourceIsGPUResource (const struct KzuResource *resource) |
| Checks if the given resource is a GPU resource. More... | |
| kzsError | kzuGPUResourceDeploy (struct KzuGPUResource *gpuResource) |
| Tells the GPU resource to deploy the data to GPU if it has not yet been deployed or has been undeployed. More... | |
| kzsError | kzuGPUResourceUndeploy (struct KzuGPUResource *gpuResource) |
| Tells the GPU resource to undeploy the data from GPU. More... | |
| kzBool | kzuGPUResourceIsDeployed (const struct KzuGPUResource *gpuResource) |
| Checks if the given GPU resource has been deployed and is still in GPU memory. More... | |
| kzsError | kzuGPUResourceInvalidate (struct KzuGPUResource *gpuResource) |
| Tells the GPU resource to invalidate the GPU state back to undeployed state without actually undeploying. More... | |
| enum KzuGPUResourceDeploymentStrategy | kzuGPUResourceGetDeploymentStrategy (const struct KzuGPUResource *gpuResource) |
| Returns the deployment strategy of the GPU resource. More... | |
| void | kzuGPUResourceSetDeploymentStrategy (struct KzuGPUResource *gpuResource, enum KzuGPUResourceDeploymentStrategy deploymentStrategy) |
| Sets the deployment strategy of the GPU resource. More... | |
| kzUint | kzuGPUResourceGetGPUMemoryUsage (const struct KzuGPUResource *gpuResource) |
| Returns GPU memory usage of the resource. More... | |
Variables | |
| const KzuResourceType | KZU_RESOURCE_TYPE_GPU_RESOURCE |
| Resource type identifier for GPU resources. More... | |
GPU resource.
Copyright 2008-2019 by Rightware. All rights reserved.
GPU resource deployment strategy.
This specifies when the resource will be deployed and undeployed.
| struct KzuResource* kzuGPUResourceToResource | ( | const struct KzuGPUResource * | gpuResource) |
Convert GPU resource to resource.
| struct KzuGPUResource* kzuGPUResourceFromResource | ( | const struct KzuResource * | resource) |
Convert resource to GPU resource.
| kzBool kzuResourceIsGPUResource | ( | const struct KzuResource * | resource) |
Checks if the given resource is a GPU resource.
| kzsError kzuGPUResourceDeploy | ( | struct KzuGPUResource * | gpuResource) |
Tells the GPU resource to deploy the data to GPU if it has not yet been deployed or has been undeployed.
| kzsError kzuGPUResourceUndeploy | ( | struct KzuGPUResource * | gpuResource) |
Tells the GPU resource to undeploy the data from GPU.
| kzBool kzuGPUResourceIsDeployed | ( | const struct KzuGPUResource * | gpuResource) |
Checks if the given GPU resource has been deployed and is still in GPU memory.
| kzsError kzuGPUResourceInvalidate | ( | struct KzuGPUResource * | gpuResource) |
Tells the GPU resource to invalidate the GPU state back to undeployed state without actually undeploying.
This is needed e.g. when the GL context is recreated.
| enum KzuGPUResourceDeploymentStrategy kzuGPUResourceGetDeploymentStrategy | ( | const struct KzuGPUResource * | gpuResource) |
Returns the deployment strategy of the GPU resource.
| void kzuGPUResourceSetDeploymentStrategy | ( | struct KzuGPUResource * | gpuResource, |
| enum KzuGPUResourceDeploymentStrategy | deploymentStrategy | ||
| ) |
Sets the deployment strategy of the GPU resource.
| kzUint kzuGPUResourceGetGPUMemoryUsage | ( | const struct KzuGPUResource * | gpuResource) |
Returns GPU memory usage of the resource.
| const KzuResourceType KZU_RESOURCE_TYPE_GPU_RESOURCE |
Resource type identifier for GPU resources.